package com.yyu.test.db.impl;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.yyu.test.db.DbTest;
import com.yyu.test.entity.TestEntity;

public class DbTestImpl extends HibernateDaoSupport implements DbTest {

	@Override
	public void test1() {
//		System.out.println(this.getJdbcTemplate().queryForInt("select count(*) from test1 "));
		TestEntity te = new TestEntity();
		te.setWid("1");
		te.setXh("0001");
		te.setXm("yyu");
		getHibernateTemplate().save(te);
	}

}
